package cc.md888.app;


 import cc.md888.app.utils.SpringContextHolder;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.web.servlet.ServletComponentScan;
 import org.springframework.context.ApplicationContext;

@SpringBootApplication(
        scanBasePackages = {"cc.md888.app"}
)
@ServletComponentScan()
public class Application {

    public static void main(String[] args){
        ApplicationContext context = SpringApplication.run(Application.class);
        SpringContextHolder.setContext(context);
    }
}
